package com.github.chirspan.xaas.gateway.config;

import feign.codec.Decoder;
import feign.codec.Encoder;
import feign.jackson.JacksonDecoder;
import feign.jackson.JacksonEncoder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * *******description*******
 * <p>
 * *************************
 *
 * @author chenpan
 * @date 2020/5/26 13:50
 */
@Configuration
public class FeignConfig {

    /**
     * @return
     */
    @Bean
    Encoder feignEncoder() {
        return new JacksonEncoder();
    }

    /**
     * @return
     */
    @Bean
    Decoder feignDecoder() {
        return new JacksonDecoder();
    }

}
